<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>试用</title>
</head>
<body style="margin:0; padding:0;">
<iframe src="/files" id="iframe" name="iframename" width="100%" height="100%" frameborder="no" border="none" marginwidth="0" marginheight="0" allowtransparency="yes" style="overflow:hidden; position:absolute;"></iframe>
<script type="text/javascript" src="/static/js/jquery/jquery.js"></script>
<script type="text/javascript">
$(function(){
	$(document).on("keydown",function(e){ 
        e=window.event||e;
        if(e.keyCode==116){
            return false;
        }
    });
	/*
	var $iframe = $(window.frames["iframename"].document);
    $iframe.on("keydown",function(e){
    	 e=window.event||e;
		if(e.keyCode==116){
			console.log(2);
			document.getElementById('iframe').contentWindow.location.reload(true);
			return false;
		}
	});
    */
});
window.onbeforeunload = function(e){
	return '此操作可能会丢失数据，真的要继续吗？'; 
}

</script>
</body>
</html>